from typing import List


class Solution:
    def setZeroes(self, matrix: List[List[int]]) -> None:
        """
        Do not return anything, modify matrix in-place instead.
        """
        m, n = len(matrix), len(matrix[0])
        row_set = set()
        col_set = set()
        for i in range(m):
            for j in range(n):
                if matrix[i][j] == 0:
                    row_set.add(i)
                    col_set.add(j)
        for r in row_set:
            for j in range(n):
                matrix[r][j] = 0
        for i in range(m):
            for c in col_set:
                matrix[i][c] = 0


if __name__ == '__main__':
    x = {1, 2, 3}
    for s in x:
        print(s)
